package org.mall.usc.service.impl;

import org.mall.api.user.model.dto.UserLoginRequestDto;
import org.mall.api.user.model.dto.UserLoginResponseDto;
import org.mall.api.user.service.IUserCoreService;
import org.mall.base.exception.BusinessException;

/**
 * 用户核心服务实现类
 *
 * @author wzy_hi
 * @version 1.0
 * @date 2018/7/17 23:18
 */
public class UserCoreServiceImpl implements IUserCoreService {

    @Override
    public UserLoginResponseDto doLogin(UserLoginRequestDto userLoginRequestDto) {
        if (null == userLoginRequestDto) {
            throw new BusinessException("登陆失败, 参数非法");
        }

        UserLoginResponseDto responseDto = new UserLoginResponseDto();
        responseDto.setUserName("zhangsan");
        responseDto.setPassWord("**********");
        responseDto.setRealName("张三");
        responseDto.setAvatar("");
        return responseDto;
    }
}
